using System;
using System.Collections.Generic;
using System.Text;
using DotExe.Core.Web;
using DotExe.Core.DataSources;
using DotExe.Core.Uml.Behaviors.CommonBehaviors.Communications;
using DotExe.Core.Controls;

namespace WebSMSApp.Forms
{
    public partial class AnswerForm : ClientApplication
    {
        public AnswerForm()
            : base()
        {
            this.Loaded += new System.EventHandler(AnswerForm_Load);
            this.Started += new System.EventHandler(AnswerForm_Started);
        }

        //occures after datasources and trigger configuration loads
        protected void AnswerForm_Load(object sender, EventArgs e)
        {
            InitializeComponent();

            //initialize custom data sources and triggers
        }

        //ocurres on everytime form starts
        protected void AnswerForm_Started(object sender, EventArgs e)
        {
            dsMessage.Bind();
        }

        public void setSource(Data source)
        {
            dsMessage.Source = source;
        }

        protected virtual void btnAnswerClick(object sender, EventArgs e)
        {
            MessageBox.Info("Odgovor poslat!", "Info", this);
        }

		protected virtual void AnswerFormFormClosed(object sender, EventArgs e)
		{
			
		}

		protected virtual void gvHistoryCellClick(object sender, EventArgs e)
		{
			
		}
    }
}